'''
The module oveerides some methods in the U{twisted.internet.posixbase
<http://twistedmatrix.com>} Module in Twisted framework library..

@author: Oraby
'''

import twisted.internet.posixbase as posixbase
from twistedSim.overrideManager import OverrideManager

def install():
    '''Install the overriding modules '''
    OverrideManager.storeEntity(originalFn = posixbase.PosixReactorBase.installWaker,
                fullName = "posixbase.PosixReactorBase.installWaker")
    posixbase.PosixReactorBase.installWaker = lambda self:None
    
def uninstall():
    '''Uninstall the overriding modules '''
    x = OverrideManager.getEntity("posixbase.PosixReactorBase.installWaker")
    posixbase.PosixReactorBase.installWaker = x
    